<?php
class Comment extends CommentsAppModel {

	var $name = 'Comment';
	var $validate = array(
		'author' => array(
			VALID_NOT_EMPTY,
			array(
				'rule'=> array('maxLength', 100) 
			)
		),
		'url' => array(
			'rule'=>array('url', true),
			'allowEmpty' => true
			
		),
		'body' => array('notempty')
	);
/*

'email' => array(
	VALID_NOT_EMPTY,
	array(
		'rule'=> 'email'
	)
),

*/
	//The Associations below have been created with all possible keys, those that are not needed can be removed
/*	var $belongsTo = array(
			'User' => array('className' => 'User',
								'foreignKey' => 'user_id',
								'conditions' => '',
								'fields' => '',
								'order' => ''
			)
	);*/

}
?>